package com.codedef.fservice;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 孙宏宇
 * @date 2021/2/22 10:09
 */
@FeignClient(value = "user")
public interface UserService {

    @GetMapping("/user/f/incrReservationNum/{userId}")
    String increaseReservationNumberFeign(@PathVariable("userId") Integer userId);

    @GetMapping("/user/f/increaseDefaultNumber/{userId}")
    String increaseDefaultNumber(@PathVariable("userId") Integer userId);

}
